-- GENERATED SPELL FOR [Crushridge Warmonger] --


function spell0_2287(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(8269,pUnit)
pUnit:RegisterEvent('Sorts_2287', 584, 1)
end

function Sorts_2287(pUnit, Event)
local choix_sorts_2287 = math.random(0, 0)
if choix_sorts_2287 == 0 then
pUnit:RegisterEvent('spell0_2287', 1, 1)
end
end

function mob2287_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2287', math.random(1500, 3000), 1)
end

function mob2287_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2287_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2287_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2287, 1, 'mob2287_Action')
RegisterUnitEvent(2287, 2, 'mob2287_Leave')
RegisterUnitEvent(2287, 3, 'mob2287_Kill')
RegisterUnitEvent(2287, 4, 'mob2287_Die')
